﻿using _010_RemotingServerTCPActivated;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
using System.Text;
using System.Threading.Tasks;

namespace _010_RemotingServerTCPActivated
{
    class Program
    {
        static void Main(string[] args)
        {
            TcpChannel channel = new TcpChannel(9999);
            ChannelServices.RegisterChannel(channel,true);
            ActivatedServiceTypeEntry entry = new ActivatedServiceTypeEntry(typeof(RemotingServer));
            RemotingConfiguration.RegisterActivatedServiceType(entry);

            Console.WriteLine("Server configured");
            Console.ReadLine();
        }
    }
}
